#include <iostream> 
using namespace std;
/*
x - (x/2 +1)  = x/2 -1

s=x/2 - 1
x=(s+1)*2 


*/ 
int main(){
	int n,s=1;
	cin>>n;
	for(int i=n;i>1;i--){
		s=(s+1)*2;
	}
	cout<<s;
	return 0;
}

